#define _CRT_SECURE_NO_WARNINGS 1

#include"HeapString.h"

int main()
{
	HString S;
	InitString(&S);
	StrAssign(&S, "ababcababcab");

	HString T;
	InitString(&T);
	StrAssign(&T, "abc");

	HString V;
	InitString(&V);
	StrAssign(&V, "xzy666");

	StrReplace(&S, &T, &V);
	PrintString(&S);

	return 0;
}